package com.thy.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hospital.common.pojo.TAuitLog;
import com.hospital.common.vo.audit.module.AdminVo;
import com.hospital.common.vo.audit.module.AuitLogVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 审核记录表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-09-28
 */
public interface TAuitLogMapper extends BaseMapper<TAuitLog> {

    Integer getRole(@Param("adminId") Long adminId);

    String getAdminName(@Param("adminId") Long adminId);

    String getTargetName(@Param("targetId") Long targetId);

    IPage<AuitLogVo> getAllLog(@Param("page") Page<AuitLogVo> page,@Param("adminId") Long adminId);

    List<AdminVo> getAllAdmin();

    String getSectionName(@Param("sectionId") Long sectionId);
}
